home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / xa / CommentPane$DocBridge.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  2.8 KB  |  87 lines

  1. package com.extensibility.xa;
  2.  
  3. import com.extensibility.xml.BaseDeclaration;
  4. import com.extensibility.xml.CommentList;
  5. import com.extensibility.xml.ExternalSubset;
  6. import com.extensibility.xml.URI;
  7. import java.util.Vector;
  8.  
  9. class CommentPane$DocBridge implements CommentPane.Displayable {
  10.    // $FF: synthetic field
  11.    final CommentPane this$0;
  12.    URI uri;
  13.  
  14.    CommentPane$DocBridge(CommentPane var1) {
  15.       this.this$0 = var1;
  16.       this.uri = this.this$0.getSchemaDoc().getURI();
  17.    }
  18.  
  19.    public URI getURI() {
  20.       return this.uri;
  21.    }
  22.  
  23.    public boolean setURI(URI var1) {
  24.       if (var1 == null) {
  25.          var1 = this.this$0.getSchemaDoc().getURI();
  26.       }
  27.  
  28.       boolean var2 = !this.uri.equals(var1);
  29.       this.uri = var1;
  30.       return var2;
  31.    }
  32.  
  33.    public void touch(BaseDeclaration var1) {
  34.       this.this$0.getSchemaDoc().touch(this.uri);
  35.    }
  36.  
  37.    public boolean hasChanges() {
  38.       return true;
  39.    }
  40.  
  41.    public boolean hasPreview() {
  42.       return false;
  43.    }
  44.  
  45.    public boolean isEditable() {
  46.       return this.this$0.getSchemaDoc().isEditable(this.uri);
  47.    }
  48.  
  49.    public String getAll() {
  50.       CommentList var1 = this.this$0.getSchemaDoc().getCommentList(this.uri);
  51.       return var1 == null ? null : var1.getCommentsAsString((String)null, CommentPane.TWIXT);
  52.    }
  53.  
  54.    public String getUnkind() {
  55.       CommentList var1 = this.this$0.getSchemaDoc().getCommentList(this.uri);
  56.       return var1 == null ? null : var1.getCommentsAsString("", CommentPane.TWIXT);
  57.    }
  58.  
  59.    public String getUsage() {
  60.       CommentList var1 = this.this$0.getSchemaDoc().getCommentList(this.uri);
  61.       return var1 == null ? null : var1.getCommentsAsString("USAGE", CommentPane.TWIXT);
  62.    }
  63.  
  64.    public String getChanges() {
  65.       return this.this$0.getSchemaDoc().getVersionInfoAsString(this.getURI());
  66.    }
  67.  
  68.    public String getPreview() {
  69.       return null;
  70.    }
  71.  
  72.    public String getName() {
  73.       if (this.uri.equals(this.this$0.getSchemaDoc().getURI())) {
  74.          return XAUI.getObjectName(this.this$0.getSchemaDoc().getClassName(), this.this$0.getSchemaDoc().getName());
  75.       } else {
  76.          ExternalSubset var1 = this.this$0.getSchemaDoc().getSubset(this.uri);
  77.          return XAUI.getObjectName(var1.getClassName(), ((BaseDeclaration)var1).getName());
  78.       }
  79.    }
  80.  
  81.    public void setComments(Vector var1, String var2) {
  82.       this.this$0.semaphoreDontUpdate = true;
  83.       this.this$0.getSchemaDoc().setComments(this.uri, var1, var2);
  84.       this.this$0.semaphoreDontUpdate = false;
  85.    }
  86. }
  87.